﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;


namespace Healthy
{
    public partial class Menu : Form
    {
        public Menu()
        {
            InitializeComponent();
        }

        private void Menu_Load(object sender, EventArgs e)
        {
            string oMySqlConn = (@"Server=narma-pc\sqlexpress;Database=mydata;Integrated Security=SSPI");
            SqlConnection Conn = new SqlConnection(oMySqlConn);

        }

        private void toolStripButton3_Click(object sender, EventArgs e)
        {
            frmperson f1 = new frmperson();
            f1.MdiParent= this;
            f1.ShowDialog();
        }


        private void ทะเบยนToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmperson f5 = new frmperson();
            f5.ShowDialog();
        }

        

        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void การบรการToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            frmservices f6 = new frmservices();
            f6.ShowDialog();
        }

        private void ดประวตการบรการToolStripMenuItem1_Click(object sender, EventArgs e)
        {

        }

        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            frmservice1 f7 = new frmservice1();
            f7.ShowDialog();
        }

        private void ขอมลยาToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmmed f8 = new frmmed();
            f8.ShowDialog();
        }

        private void ขอมลโรงเรยนToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmschool f9 = new frmschool();
            f9.ShowDialog();
        }

        private void ขอมลอสมToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmosm f10 = new frmosm();
            f10.ShowDialog();

        }

        private void ขอมลบคลากรToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmdoctor f11 = new frmdoctor();
            f11.ShowDialog();
        }

        private void ลงทะเบยนฝากครรภToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPrenatal f12 = new frmPrenatal();
            f12.ShowDialog();
        }

        private void ลงทะเบยนผมาใชบรการToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmperson f5 = new frmperson();
            f5.ShowDialog();

        }

        private void รายงานแสดงการเบกยาToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRewith frw = new frmRewith();
            frw.ShowDialog();
        }

        private void ตรวจครรภToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmd_prenatal f14 = new frmd_prenatal();
            f14.ShowDialog();
        }

        private void ลงทะเบยนการฝากครรภToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPrenatal f12 = new frmPrenatal();
            f12.ShowDialog();
        }

       

        private void การบรการทวไปToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmservices frms = new frmservices();
            frms.ShowDialog();
        }

        private void การบรการอนามยToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmschoolservice f4 = new frmschoolservice();
            f4.ShowDialog();

        }

        private void บนทกการเบกยาToolStripMenuItem_Click(object sender, EventArgs e)
        {

            frmservice1 f7 = new frmservice1();
            f7.ShowDialog();
        }

        private void บนทกหารดแลโภชนาการของเดกToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmnutri fn = new frmnutri();
            fn.ShowDialog();
        }

        private void บนทกการตรวจขอมลหลงคาเรอนToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmhouse fh = new frmhouse();
            fh.ShowDialog();
        }

        private void รายงานสรปผมาใชบรการในแตละวนToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmReservice frs = new frmReservice();
            frs.ShowDialog();
        }

        private void รายงานสรปการToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmReschool frsc = new frmReschool();
            frsc.ShowDialog();
        }

        private void รายงานแสดงขอมลบคลากรToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRedoc frd = new frmRedoc();
            frd.ShowDialog();
        }

        private void รายงานแสดงขอมลอสมToolStripMenuItem_Click(object sender, EventArgs e)
        {

            frmReosm fro = new frmReosm();
            fro.ShowDialog();
        }

        private void ครวเรอนทงหมดToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRehouse frh = new frmRehouse();
            frh.ShowDialog();
        }

        private void ครวเรอนทไมมสวมToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRehouse1 frh1 = new frmRehouse1();
            frh1.ShowDialog();
        }

        private void ครวเรอนทใชToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRehouse2 frh2 = new frmRehouse2();
            frh2.ShowDialog();
        }

        private void ทมการเผาเปนการกำจดขยะToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRehouse3 frh3 = new frmRehouse3();
            frh3.ShowDialog();
        }

        private void ครวเรอนทToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRehouse4 frh4 = new frmRehouse4();
            frh4.ShowDialog();
        }

        private void ทมการควบคมสตวนำโรคToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRehouse5 frh5 = new frmRehouse5();
            frh5.ShowDialog();
        }

        private void ครวเรอนทอสมแตละคนบรการToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRehouseosm frho = new frmRehouseosm();
            frho.ShowDialog();
        }

        private void การเบกยาของอสมแยกตามเดอนToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmRewithosm frhw = new frmRewithosm();
            frhw.ShowDialog();
        }

        private void ขอมลอสมToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmReosm frhw = new frmReosm();
            frhw.ShowDialog();
        }
        }
    }
